package com.justnow.offer;

/**
 * @author justnow
 * Created on 2020-10-08
 * Description
 */
public class Tuhuyangche02 {
    public int reorder (int[] prices) {
        // write code here
        int res = 0;
        int length = prices.length;
        if (length <= 2) {
            return res;
        }

        if (length % 2 == 0) {
            res = length / 2 - 1;
        } else {
            res = length /2;
        }
        return res;
    }
}
